# coding=utf-8
"""
Author: Mr.夏末
@Function: 累的调用
"""
from class07.demo03 import Dog,New_Dog
from class07 import demo04

d1 = New_Dog("小白","白色",0)
d2 = New_Dog('老黑',"黑色",5)
d1.bark()
d2.bark()
New_Dog.disassembly()

# 继承:继承所有的实例变量、类变量，类函数、实例函数
print(d1.name)
d1.bark()

New_Dog.disassembly()
d1.get_old('a')
d1.swing()

# 也可以使用全局变量
demo04.aaa = 888
print(demo04.aaa)